package com.itheima.ithmshortlink.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.ithmshortlink.dto.LongLink;
import com.itheima.ithmshortlink.pojos.UrlMapping1;
import org.springframework.stereotype.Service;

@Service
public interface ShortLinkService extends IService<UrlMapping1> {

    //将长链转换成短链
    public String toShortLink(LongLink longLink);


    //修改短链的状态
    public void  updateShortLinkStats(String shortUrl,Integer status);
}
